﻿using System;
using System.Windows.Forms;
namespace Moonlite.ExtensionApi.ControlInterfaces
{
    public interface IErrorList
    {
        bool UsePeriodicSyntaxCheck { get; set; }
        ErrorListObjectCollection Errors { get; set; }
        ErrorListObjectCollection Warnings { get; set; }
        ErrorListObjectCollection Messages { get; set; }
        ErrorListObjectCollection AllObjects { get; }
        ErrorListObjectCollection CombineWithOtherCollections(ErrorListObjectType type, ErrorListObjectCollection collection);
        bool AddObject(ErrorListObjectType type, ErrorListObject listObject);
        bool AddObject(ErrorListObjectType type, string description, string file, int row, int column, int length, ErrorListObjectDoubleClick action);
        void RefreshObjects();
    }
}
